home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga GIGA Graphic
/
Amiga GIGA Graphic CDs 1-4 (1994)(Geuther)(Disc 4 of 4)[!].iso
/
rush
/
scripts
/
format_disk
< prev
next >
Wrap
AmigaDOS Script File
|
1994-11-23
|
981b
|
52 lines
.key pubscreen/a
.bra {
.ket }
; $VER: format_disk 37.1 (15.4.93)
;
; Asks user for a disk to format. This uses the AmigaDOS
; requestchoice under 3.0 and the requestchoice program
; included with Rush under AmigaDOS 2.x.
;
requestchoice >env:formatdisk pubscreen {pubscreen} "Disk Format" "Select disk to Format" "df0:|pc0:|ff0:|ff1:|ff2:|ff3:|Cancel"
if val $formatdisk EQ 1
set disk "df0:"
endif
if val $formatdisk EQ 2
set disk "pc0:"
endif
if val $formatdisk EQ 3
set disk "ff0:"
endif
if val $formatdisk EQ 4
set disk "ff1:"
endif
if val $formatdisk EQ 5
set disk "ff2:"
endif
if val $formatdisk EQ 6
set disk "ff3:"
endif
if val $formatdisk EQ 0
quit
endif
if exists env:formatdisk
delete quiet "env:formatdisk"
endif
if val $formatdisk EQ 2
set diskoptions "IBM noicons"
else
set diskoptions "AmigaDOS ffs noicons"
endif
run >nil: <nil: format drive $disk name $diskoptions <z:rush/scripts/return >con:30/50/335/70/Format/screen{pubscreen}